3.211 \(\int \cot (c+d x) \csc ^2(c+d x) (a+a \sin (c+d x))^3 \, dx\)

Optimal. Leaf size=61 \[ \frac {a^3 \sin (c+d x)}{d}-\frac {a^3 \csc ^2(c+d x)}{2 d}-\frac {3 a^3 \csc (c+d x)}{d}+\frac {3 a^3 \log (\sin (c+d x))}{d} \]

[Out]

-3*a^3*csc(d*x+c)/d-1/2*a^3*csc(d*x+c)^2/d+3*a^3*ln(sin(d*x+c))/d+a^3*sin(d*x+c)/d

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2833, 12, 43} \[ \frac {a^3 \sin (c+d x)}{d}-\frac {a^3 \csc ^2(c+d x)}{2 d}-\frac {3 a^3 \csc (c+d x)}{d}+\frac {3 a^3 \log (\sin (c+d x))}{d} \]

Antiderivative was successfully verified.

[In]

Int[Cot[c + d*x]*Csc[c + d*x]^2*(a + a*Sin[c + d*x])^3,x]

[Out]

(-3*a^3*Csc[c + d*x])/d - (a^3*Csc[c + d*x]^2)/(2*d) + (3*a^3*Log[Sin[c + d*x]])/d + (a^3*Sin[c + d*x])/d

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2833

Int[cos[(e_.) + (f_.)*(x_)]*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)
])^(n_.), x_Symbol] :> Dist[1/(b*f), Subst[Int[(a + x)^m*(c + (d*x)/b)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[
{a, b, c, d, e, f, m, n}, x]

Rubi steps

\begin {align*} \int \cot (c+d x) \csc ^2(c+d x) (a+a \sin (c+d x))^3 \, dx &=\frac {\operatorname {Subst}\left (\int \frac {a^3 (a+x)^3}{x^3} \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {a^2 \operatorname {Subst}\left (\int \frac {(a+x)^3}{x^3} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {a^2 \operatorname {Subst}\left (\int \left (1+\frac {a^3}{x^3}+\frac {3 a^2}{x^2}+\frac {3 a}{x}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac {3 a^3 \csc (c+d x)}{d}-\frac {a^3 \csc ^2(c+d x)}{2 d}+\frac {3 a^3 \log (\sin (c+d x))}{d}+\frac {a^3 \sin (c+d x)}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 53, normalized size = 0.87 \[ a^3 \left (\frac {\sin (c+d x)}{d}-\frac {\csc ^2(c+d x)}{2 d}-\frac {3 \csc (c+d x)}{d}+\frac {3 \log (\sin (c+d x))}{d}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[c + d*x]*Csc[c + d*x]^2*(a + a*Sin[c + d*x])^3,x]

[Out]

a^3*((-3*Csc[c + d*x])/d - Csc[c + d*x]^2/(2*d) + (3*Log[Sin[c + d*x]])/d + Sin[c + d*x]/d)

________________________________________________________________________________________

fricas [A]  time = 0.49, size = 77, normalized size = 1.26 \[ \frac {a^{3} + 6 \, {\left (a^{3} \cos \left (d x + c\right )^{2} - a^{3}\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) + 2 \, {\left (a^{3} \cos \left (d x + c\right )^{2} + 2 \, a^{3}\right )} \sin \left (d x + c\right )}{2 \, {\left (d \cos \left (d x + c\right )^{2} - d\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*csc(d*x+c)^3*(a+a*sin(d*x+c))^3,x, algorithm="fricas")

[Out]

1/2*(a^3 + 6*(a^3*cos(d*x + c)^2 - a^3)*log(1/2*sin(d*x + c)) + 2*(a^3*cos(d*x + c)^2 + 2*a^3)*sin(d*x + c))/(
d*cos(d*x + c)^2 - d)

________________________________________________________________________________________

giac [A]  time = 0.18, size = 55, normalized size = 0.90 \[ \frac {6 \, a^{3} \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) + 2 \, a^{3} \sin \left (d x + c\right ) - \frac {6 \, a^{3} \sin \left (d x + c\right ) + a^{3}}{\sin \left (d x + c\right )^{2}}}{2 \, d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*csc(d*x+c)^3*(a+a*sin(d*x+c))^3,x, algorithm="giac")

[Out]

1/2*(6*a^3*log(abs(sin(d*x + c))) + 2*a^3*sin(d*x + c) - (6*a^3*sin(d*x + c) + a^3)/sin(d*x + c)^2)/d

________________________________________________________________________________________

maple [A]  time = 0.19, size = 62, normalized size = 1.02 \[ \frac {a^{3} \sin \left (d x +c \right )}{d}-\frac {3 a^{3}}{d \sin \left (d x +c \right )}+\frac {3 a^{3} \ln \left (\sin \left (d x +c \right )\right )}{d}-\frac {a^{3}}{2 d \sin \left (d x +c \right )^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)*csc(d*x+c)^3*(a+a*sin(d*x+c))^3,x)

[Out]

a^3*sin(d*x+c)/d-3*a^3/d/sin(d*x+c)+3*a^3*ln(sin(d*x+c))/d-1/2*a^3/d/sin(d*x+c)^2

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 54, normalized size = 0.89 \[ \frac {6 \, a^{3} \log \left (\sin \left (d x + c\right )\right ) + 2 \, a^{3} \sin \left (d x + c\right ) - \frac {6 \, a^{3} \sin \left (d x + c\right ) + a^{3}}{\sin \left (d x + c\right )^{2}}}{2 \, d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*csc(d*x+c)^3*(a+a*sin(d*x+c))^3,x, algorithm="maxima")

[Out]

1/2*(6*a^3*log(sin(d*x + c)) + 2*a^3*sin(d*x + c) - (6*a^3*sin(d*x + c) + a^3)/sin(d*x + c)^2)/d

________________________________________________________________________________________

mupad [B]  time = 8.57, size = 163, normalized size = 2.67 \[ \frac {3\,a^3\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {-2\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\frac {a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{2}+6\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {a^3}{2}}{d\,\left (4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\right )}-\frac {a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,d}-\frac {3\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,d}-\frac {3\,a^3\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((cos(c + d*x)*(a + a*sin(c + d*x))^3)/sin(c + d*x)^3,x)

[Out]

(3*a^3*log(tan(c/2 + (d*x)/2)))/d - ((a^3*tan(c/2 + (d*x)/2)^2)/2 - 2*a^3*tan(c/2 + (d*x)/2)^3 + a^3/2 + 6*a^3
*tan(c/2 + (d*x)/2))/(d*(4*tan(c/2 + (d*x)/2)^2 + 4*tan(c/2 + (d*x)/2)^4)) - (a^3*tan(c/2 + (d*x)/2)^2)/(8*d)
- (3*a^3*tan(c/2 + (d*x)/2))/(2*d) - (3*a^3*log(tan(c/2 + (d*x)/2)^2 + 1))/d

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*csc(d*x+c)**3*(a+a*sin(d*x+c))**3,x)

[Out]

Timed out

________________________________________________________________________________________